package RMI.client;

import java.rmi.*;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

import RMI.SurnomInterface;

public class SurnomClient {

    public static void main(String args[]) {
        try {
            Registry registry = LocateRegistry.createRegistry(1099);
            SurnomInterface stub = (SurnomInterface)registry.lookup("TiensMonMail");
                String s = stub.list_all();
                System.out.println("chaine renvoyée = " + s);
          
        } catch (Exception e) {
        }
    }
}
